<html><head><title>Add3DArchive</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">Add3DArchive()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#3A3966"><b>Add3DArchive</b></font>(Path$, Type)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Add a new absolute or relative path to the current 3D path list. All the 3D functions which need 
to load data (e.g. <a href="../texture/index.html">texture</a>, <a href="../mesh/index.html">mesh</a>, <a href="skybox.html">sky</a>, 
<a href="renderworld.html">world</a>) will use this path. 
<br>
<br>
You may wonder why there is a special 
way to handle the files for 3D functions? Because it makes the data access more flexible and now, 
you can access the data using the standard filesystem or directly via the archive file like a .zip file. It's a 
very cool feature because you can pack all your data in one big compressed file, and then access the assets as 
if these were contained a standard directory. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>Path$</i></td>
<td width="90%"> 
The path to add to the 3D path list. It can be a real filesystem path, or a ZIP archive. 

</td></tr>
<tr><td><i>Type</i></td>
<td> 
It can be one of the following value: 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_3DArchive_FileSystem</font> : Standard directory
  <font color="#924B72">#PB_3DArchive_Zip</font>        : Compressed zip file
</font></pre>

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Returns non-zero if the path has been successfully added to the 3D resource list, zero otherwise. 

</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2"><font color="#3A3966">  Add3DArchive</font>(&quot;MyData.zip&quot;, <font color="#924B72">#PB_3DArchive_Zip</font>) <font color="#3A3966">; Add the .zip as a directory in the path</font>
<font color="#3A3966">  LoadTexture</font>(0, &quot;MyTexture.jpg&quot;)               <font color="#3A3966">; load the MyTexture.jpg from the zip</font>
<font color="#3A3966">  LoadTexture</font>(1, &quot;World/Grass.jpg&quot;)             <font color="#3A3966">; load the Grass.jpg from the zip, in the World\ path</font>
</font></pre>

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><a href="index.html">Engine3D Index</a> - <a href="ambientcolor.html">AmbientColor()</a> -><br><br>

</body></html>